package com.cash.channel.svc.service.api;

import com.cash.channel.api.model.response.LoanSubmitResponse;
import com.cash.channel.svc.service.base.LoanSubmit;
import com.cash.channel.svc.util.ServiceUtils;
import com.cash.channel.api.constant.Constant;
import com.cash.channel.api.exception.CashChannelException;
import com.cash.channel.api.model.ApiRequestModel;
import com.cash.channel.api.model.ApiResponseModel;
import com.cash.channel.api.service.BaseApi;
import org.springframework.stereotype.Service;

@Service("loanSubmit")
public class CJH000014 implements BaseApi<LoanSubmitResponse> {

    @Override
    public ApiResponseModel<LoanSubmitResponse> doProcess(ApiRequestModel apiRequestModel) throws CashChannelException {
        LoanSubmit loanSubmit = ServiceUtils.getBean(apiRequestModel.getInterfaceType()+ Constant.SERVICE.提现申请, LoanSubmit.class);
        return loanSubmit.doLoanSubmit(apiRequestModel);
    }

}
